package flyweight.tree;

public class Test {
    public static void main(String[] args) {
        Forest forest = new Forest();
        String[] colors = new String[]{"red", "yellow"};
        String[] name = new String[]{"apple", "banana"};
        String[] texture = new String[]{"smooth", "rough"};

        for (int i = 0; i < 100; i++) {
            forest.plantTree(i, i, name[i % 2], colors[i % 2], texture[i % 2]);
        }
        forest.draw("canvas");


    }
}